package mtest3.day2;

public class Demo1 {
    public static void main(String[] args) {
        Linklist list = new Linklist();
        System.out.println(list.size());
        System.out.println(list.isEmpty());
        list.insert(0, "11");
        list.insert(1, "22");
        list.show();
        list.insert(1, "333");
        System.out.println("========================");
        list.show();
        System.out.println("____________");
        System.out.println(list);
        System.out.println(list.size());
        System.out.println(list.isEmpty());
        list.add("444");
        System.out.println(list);
        list.addFrist("555");
        System.out.println(list);
        list.set(2, "202");
        System.out.println(list);
        list.addLast("kk");
        System.out.println(list);
        list.remove(0);
        list.remove(2);
        System.out.println(list);
        System.out.println(list.get(1));
        System.out.println(list.contains("kk"));
        System.out.println(list.indexOf("kk"));


    }
}
